
class Coursedto {
  int code;
  String msg;
  List<DataBean> data;

  static Coursedto fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    Coursedto coursedtoBean = Coursedto();
    coursedtoBean.code = map['code'];
    coursedtoBean.msg = map['msg'];
    coursedtoBean.data = List()..addAll(
      (map['data'] as List ?? []).map((o) => DataBean.fromMap(o))
    );
    return coursedtoBean;
  }

  Map toJson() => {
    "code": code,
    "msg": msg,
    "data": data,
  };
}


class DataBean {
  int id;
  String courseName;
  int teacherId;
  int classesId;
  int whatDay;
  int sortNum;
  bool canSign;

  static DataBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.id = map['id'];
    dataBean.courseName = map['courseName'];
    dataBean.teacherId = map['teacherId'];
    dataBean.classesId = map['classesId'];
    dataBean.whatDay = map['whatDay'];
    dataBean.sortNum = map['sortNum'];
    dataBean.canSign = map['canSign'];
    return dataBean;
  }

  Map toJson() => {
    "id": id,
    "courseName": courseName,
    "teacherId": teacherId,
    "classesId": classesId,
    "whatDay": whatDay,
    "sortNum": sortNum,
    "canSign": canSign,
  };
}